package com.richapp.launcher.database.system.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="user")
public class UserModel {

	@DatabaseField(generatedId = true)
	private int id;
	
	@DatabaseField(columnName = "userName",unique = true)
	private String userName;

    @DatabaseField(columnName = "nickName",canBeNull = false)
    private String nickName;
	
	@DatabaseField(columnName = "password")
	private String password;
	
	@DatabaseField(columnName = "ip")
	private String ip;
	
	@DatabaseField(columnName = "phone")
	private String phone;
	
	@DatabaseField(columnName = "email")
	private String email;
	
	@DatabaseField(columnName = "idCard")
	private String idCard;
	
	@DatabaseField(columnName = "logo")
	private String logo;

	@DatabaseField(columnName = "lastUpdateTime",canBeNull = false)
	private long lastUpdateTime = 0;

	@DatabaseField(columnName = "cameraLoginName")
	private String cameraLoginName;

	@DatabaseField(columnName = "cameraPassword")
	private String cameraPassword;

	
	public UserModel() {
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getCameraLoginName() {
		return cameraLoginName;
	}

	public void setCameraLoginName(String cameraLoginName) {
		this.cameraLoginName = cameraLoginName;
	}

	public String getCameraPassword() {
		return cameraPassword;
	}

	public void setCameraPassword(String cameraPassword) {
		this.cameraPassword = cameraPassword;
	}


}
